package com.example.sfm.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sfm
 * @since 2025-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("feedback")
@Schema(name="Feedback对象",description = "反馈表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Feedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "反馈ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "留言内容")
    private String message;

    @Schema(description = "管理员或教师的回复")
    private String reply;

    @Schema(description = "处理状态（0=未处理, 1=已处理）")
    private Integer status;

    @Schema(description = "留言时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "回复时间")
    private LocalDateTime repliedAt;


}
